<tagLib name="html" />
<include file="Public:header" />
<load href ="__PUBLIC__/Js/common.js" />
<div id="main" class="main" >
<script language="JavaScript">
<!--
function checkInfo(){
	if($('productId').value==0){
		alert('请选择要购买的产品!');
		return false;
	}
	if($('salerId').value==0){
		alert('请选择销售顾问!');
		return false;
	}
	var enough = $('money').value - $('price').value;
	if(enough<0){
		alert('会员卡余额不足,请先充值!');
		return false;
	}
	if($('isExt').value==1){
		var money = $('price').value;    // 价格
		var ext   = $('extMoney').value; // 优惠金额
 		var pay   = money-ext;    // 会员卡扣除金额

	}
	return confirm("请确认购买产品\n将从会员卡中扣除金额：￥"+$('price').value);

}
//-->
</script>
<div class="content">
<div class="title">[<a href="__APP__/Member/showInfo/id/{$card.memberId}">返回</a>]会员卡充值</div>
<table cellpadding=3 cellspacing=3>
<form method='post' id="form1" action="__APP__/payLog/insert/" >

<tr>
	<td class="tRight">付款方式：</td>
	<td class="tLeft"><SELECT class="small bLeft"  name="addType">
	<option value="1">刷卡</option>
	<option value="0">现金</option>
	</SELECT></td>
</tr>
<tr>
	<td class="tRight" >充值金额：</td>
	<td class="tLeft" ><input type="text" class="small bLeftRequire" name="money" value=""></td>
</tr>
<tr>
	<td class="tRight tTop">流水号：</td>
	<td class="tLeft" ><input type="text" class="medium bLeft" name="payNumber" value=""></td>
</tr>
<tr>
	<td class="tRight tTop">备  注：</td>
	<td class="tLeft"><TEXTAREA class="large bLeft"  name="remark" rows="5" cols="57"></textarea></td>
</tr>
<tr>
	<td class="tRight tTop">操作人：</td>
	<td class="tLeft" >{$Think.session.loginUserName}</td>
</tr>
<input type="hidden" name="cardId" value="{$card.id}" />
<input type="hidden" name="memberId" value="{$card.memberId}" />
<input type="hidden" name="salerId" value="{$card.salerId}" />
<input type="hidden" name="payType" value="0" />
<input type="hidden" name="operatorId" value="{$Think.session.myauthId}" />

<tr>
	<td></td>
	<td class="center">
	<input type="submit" value="保 存" class="small submit">
	<input type="reset" class="submit  small" value="清 空" >
	</td>
</tr>
</table>
</form>
</div>
</div>
